package son.niit.ict;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ArrayAdapter;
import android.widget.Spinner;

public class Register extends Activity {
    
//    String[] listCountry = {"Ha Noi", "Ha Nam", "Hoa Binh", "Hai Phong", "Thanh Hoa", "Hai Duong", "Thai Binh","Nghe An"};
//    String[] listTrade = {"Dancer","Singer","Footballer","Doctor","IT"};
    
    Spinner country, trade;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        
        setContentView(R.layout.register);
        
        country = (Spinner)findViewById(R.id.spinnercountry);
        ArrayAdapter<CharSequence> adapter_country = ArrayAdapter.createFromResource(this,R.array.list_country , android.R.layout.simple_spinner_item);
        adapter_country.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
        country.setAdapter(adapter_country);
        
        trade = (Spinner)findViewById(R.id.spinnerTrade);
        ArrayAdapter<CharSequence> adapter_trade = ArrayAdapter.createFromResource(this, R.array.list_trade, android.R.layout.simple_spinner_item);
        adapter_trade.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
        trade.setAdapter(adapter_trade);
    }
}